package com.xgxx.chendawei.system.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * 操作记录信息 VO类
 */
@Data
@ToString
public class OperationLogVO implements Serializable {
    private static final long serialVersionUID = -1L;
    @ApiModelProperty(value = "操作简述", example = "访问XX资源")
    private String introduction;
    @ApiModelProperty(value = "url或方法名称", example = "/getUser")
    private String urlOrMethod;
    @ApiModelProperty(value = "操作相关记录的主键（或主键集合）", example = "111")
    private String searchKey;
    @ApiModelProperty(value = "操作类型：枚举LogTypeEnum", example = "1")
    private Integer logType;
    @ApiModelProperty(value = "原对象信息(或访问的入参),json格式")
    private String originalObject;
    @ApiModelProperty(value = "结果对象信息(访问、新增操作时候为空),json格式")
    private String resultObject;
    @ApiModelProperty(value = "创建者（操作者）ID", example = "1")
    private Long createdBy;
    @ApiModelProperty(value = "创建者登陆名称，冗余", example = "admin")
    private String createdUserName;
    @ApiModelProperty(value = "创建时间", example = "1")
    private Date createdTime;

    @ApiModelProperty(value = "Id", example = "1")
    private Long id;

}
